home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Shareware
/
Programare
/
sharp
/
wwwSharp_setup.exe
/
{app}
/
Examples
/
Control
/
index.hta
< prev
next >
Wrap
Text File
|
2003-12-03
|
1KB
|
34 lines
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>www-Sharp.ClrHost Control example</TITLE>
<META name="GENERATOR" content="MSHTML 6.00.2800.1264">
<META http-equiv="MSThemeCompatible" content="Yes">
<SCRIPT language="JScript">
function OnBtnTestClick()
{
var dm = SimpleControl.DrawingMode;
dm++;
if (dm > 2) dm = 0;
SimpleControl.DrawingMode = dm;
}
</SCRIPT>
</HEAD>
<BODY>
<!-- ClrControl object. AssemblyName and TypeName parameters are required.
AssemblyName - preferrably should be full assembly name (with version, key, culture),
TypeName - full type name (with namespace).
Other parameters will be set to correspond object public properties by
.Net framework.
-->
<OBJECT id="SimpleControl" height="500" width="500" border="1"
classid="clsid:1D0542B3-2139-4138-B9E0-0AB5D1AF8D49">
<PARAM name="AssemblyName" value="SimpleControl">
<PARAM name="TypeName" value="Microsoft.Samples.WinForms.Cs.SimpleControl.SimpleControl">
<PARAM name="Text" value="Hello from .Net control">
</OBJECT>
<BR>
<BUTTON id="btnTest" onclick="OnBtnTestClick()">Test</BUTTON>
</BODY>
</HTML>